<?php


namespace app\pc\controller\base;


use app\BaseController;
use app\pc\service\base\StudentService;
use think\response\Json;

class Student extends BaseController
{
    /**
     * 详情
     * @param StudentService $studentService
     * @return Json
     */
    public function read(StudentService $studentService):Json
    {
        $params = request()->param();
        return $studentService->read($params);
    }

    /**
     * 修改用户信息
     * @param StudentService $studentService
     * @return Json
     */
    public function update(StudentService $studentService):Json
    {
        $params = request()->param();
        return $studentService->update($params);
    }
}